#include <stdio.h>
#include <stdlib.h>

int
main ()
{
	int x=0;
	int i=31;

	freopen("binary.in", "r", stdin);
	freopen("binary.out", "w", stdout);

	scanf("%d", &x);
	while (i >= 0) {
		printf("%d", abs((x>>i--) % 2));
	}
	printf("\n");
	return 0;
}
